﻿using Infrastructure.ElasticSearch.Enums;
using System;

namespace Infrastructure.ElasticSearch.Nests
{
    public class RangeFieldAttribute : Attribute
    {
        public string RangeName { get; private set; }

        public RangeTypeEnum RangeType { get; private set; }

        public RangeOperEnum RangeOpera { get; private set; } = RangeOperEnum.Non;

        public RangeFieldAttribute(string name, RangeTypeEnum range, RangeOperEnum opera)
        {
            RangeName = name;
            RangeType = range;
            RangeOpera = opera;
        }

    }
}
